<include file="Public/header"/>
<div class="wrapper m-t">
    <div class="ibox float-e-margins">
        <div class="ibox-title">
            <h5 class="text-info"><i class="fa fa-list"></i> 进货日志列表 </h5>
        </div>

        <div class="ibox-content">
            <div class="table-responsive">
                <table class="table table-striped table-hover">
                    <thead>
                    <tr>
                        <th>ID</th>
                        <th>进货单号</th>
                        <th>数量</th>

                        <th>录入人</th>
                        <th>录入时间</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    <volist name="_list" id="vo" key="k">
                        <tr>
                            <td>{$vo.lid}</td>
                            <td>{$vo.log_number}</td>
                            <td>{$vo.counts}</td>
                            <td>{$vo.nickname}</td>
                            <td>{$vo.create_time|date='Y-m-d H:i:s',###}</td>
                            <input type="hidden" value='{:json_encode($vo)}' id="ms{$k}">
                            <td>
                                <a data-toggle="modal" onclick="plog({$vo.lid},'{$vo.log_number}')" data-target="#model">
                                    <button class="btn btn-primary btn-xs">
                                        <i class="fa fa-file-text"></i> 详情
                                    </button>
                                </a>

                            </td>
                        </tr>
                    </volist>
                    </tbody>
                </table>
                <div class="page">{$_page}</div>
            </div>
        </div>
    </div>
</div>

<include file="Public/footer"/>
<script>
    function plog(lid,log_number){

        layer.open({
            type: 2,
            area: ['700px', '530px'],
            fix: false, //不固定
            title:'商品列表',
            maxmin: true,
            content: "{:U('Stock/logDetail')}?lid="+lid+'&log_number='+log_number,
        });
    }

</script>






